/**    
 * @Title: WbWebStatFilterConfiguration.java  
 * @Package cn.hh.wb.configuration.stat  
 * @Description: TODO(用一句话描述该文件做什么)  
 * @author 348953327@qq.com    
 * @date May 24, 2020 8:41:58 AM  
 * @version V1.0    
 */
package cn.hh.wb.configuration.stat;

import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;

import com.wb.common.Base;

import cn.hh.wb.configuration.properties.DruidStatProperties;

/**  
 * @ClassName: WbWebStatFilterConfiguration  
 * @Description: TODO(这里用一句话描述这个类的作用)  
 * @author 348953327@qq.com  
 * @date May 24, 2020 8:41:58 AM  
 *    
 */
@ConditionalOnWebApplication
public class WbWebStatFilterConfiguration {
	@Bean
    public FilterRegistrationBean<Base> wbStatFilterRegistrationBean(DruidStatProperties properties) {
        FilterRegistrationBean<Base> registrationBean = new FilterRegistrationBean<Base>();
        Base base = new Base();
        registrationBean.setFilter(base);
        registrationBean.addUrlPatterns("/*");
        return registrationBean;
    }
}
